package teleware.soe.core.dto;

/**
 * rest操作
 *
 * @author :hongsw
 * @date :2020-12-03 17:48
 */
public class Resources {
    /**
     * 资源请求的名称
     */
    private String name;
    /**
     * 资源的描述
     */
    private String description;
    private boolean isCollection;
    private boolean isDefaultCollection;

    public Resources(String name, String description, boolean isCollection, boolean isDefaultCollection) {
        this.name = name;
        this.description = description;
        this.isCollection = isCollection;
        if (!isCollection) {
            this.isDefaultCollection = false;
        }
        this.isDefaultCollection = isDefaultCollection;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setIsCollection(boolean isCollection) {
        this.isCollection = isCollection;
    }

    public boolean getIsCollection() {
        return isCollection;
    }

    public void setIsDefaultCollection(boolean isDefaultCollection) {
        this.isDefaultCollection = isDefaultCollection;
    }

    public boolean getIsDefaultCollection() {
        return isDefaultCollection;
    }

}